package com.wushijia.datastructure;

public interface GGraph<E>                       
{
    int vertexCount();                        
    E get(int i);                              
    boolean insertVertex(E vertex);             
    boolean insertEdge(int i, int j, int weight);   
    boolean removeVertex(int v);                
    boolean removeEdge(int i, int j);          
    int getFirstNeighbor(int v);           
    int getNextNeighbor(int v, int w);       
}
